package com.gongj.aop;

import org.springframework.stereotype.Component;

@Component
public class GongService implements YuanInterface {

	public User getUserInfo(String name) {
		System.out.println("方法执行 = " + name);
		return new User( name);
	}

	@Override
	public User findById(Long id) {
		System.out.println("方法执行 = " + id);
		return new User("程序员小杰");
	}
}
